$('.up').click(function() {
	var brand_id=$(this).siblings('[name=brand_order]').attr('bid');
	var brand_order=$(this).siblings('[name=brand_order]').val();
	brand_order=parseInt(brand_order)+1;
	$.post(CONTROLLER+'&_order',{brand_order:brand_order,brand_id:brand_id}, function(data) {
		// dialog_message(data.message,data.timeout);
		location.reload();
	},'json');
});
$('.down').click(function() {
	var brand_id=$(this).siblings('[name=brand_order]').attr('bid');
	var brand_order=$(this).siblings('[name=brand_order]').val();
	brand_order=parseInt(brand_order)-1;
	$.post(CONTROLLER+'&_order',{brand_order:brand_order,brand_id:brand_id}, function(data) {
		// dialog_message(data.message,data.timeout);
		location.reload();
	},'json');
});
$("input[name='brand_order']").blur(function(){
	var brand_id=$(this).attr('bid');
	hd_ajax(CONTROLLER+'&_order',{brand_order:$(this).val(),brand_id:brand_id},CONTROLLER+'/index');
});